package com.irilya.youtubeevents.gwt.client.service;

public class YouTubeEventService extends Service
{
    public YouTubeEventService(String serviceId) {
        super(serviceId);
    }

    public native void exposeEventListener(String playerId)
    /*-{
        $wnd.broadCastEvents = @com.irilya.youtubeevents.gwt.client.YouTubeEventHandler::broadCastEvents();
        $wnd.setInterval($wnd.broadCastEvents, 250, playerId);
    }-*/;

}
